import React from "react";
import { useEffect, useState } from "react";
import { CreateModalList } from "../with-list";
export const useListComp = () => {
  const CompRef = React.useRef<any>();
  const [falg, setFlag] = useState(false);
  useEffect(() => {
    CompRef.current = CreateModalList({});
    setFlag(!falg);
  }, []);
  return CompRef;
};
